package com.cmas.platform.vo;

import com.aidex.common.annotation.Excel;
import com.aidex.common.core.domain.BasePlusEntity;
import com.aidex.common.utils.log.annotation.FieldRemark;
import com.aidex.common.utils.log.annotation.LogField;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

/**
 * @Author su
 * @Date 2024/5/19 22:23
 */
@Data
public class LastNotificationVo extends BasePlusEntity {
    /**
     * 内容内容主体ID
     */
    @Excel(name = "内容主体ID")
    @LogField
    @FieldRemark(name = "内容主体ID", field = "itemId")
    private String itemId;

    /**
     * 用户ID
     */
    @Excel(name = "用户ID")
    @LogField
    @FieldRemark(name = "用户ID", field = "userId")
    private String userId;


    /**
     * 地区ID
     */
    @Excel(name = "地区ID")
    @LogField
    @FieldRemark(name = "地区ID", field = "regionId")
    private String regionId;


    /** 通知标题 */
    @Excel(name = "通知标题")
    @LogField
    @FieldRemark(name = "通知标题",field = "title")
    @Size(max = 128, message = "帖子标题长度不能超过128个字符")
    private String title;

    /**
     * 通知内容
     */
    @Excel(name = "通知内容")
    @LogField
    @FieldRemark(name = "通知内容", field = "content")
    private String content;

    /**
     * 通知类型
     */
    @Excel(name = "通知类型")
    @LogField
    @FieldRemark(name = "通知类型", field = "type")
    @NotBlank(message = "通知类型不允许为空")
    private String type;

    private String postTitle;
    private String postUserId;
    private String userName;
    private String avatar;
    private String systemUnread;
    private String regionUnread;
}
